Tag Link | [LDAP->Results] | Category | LDAP |
---|---|---|---|
Type | Member | Source Available | No |
Support | Preferred | Version | 8.5.1 |
Change | New | Data Source | Any |
Output Type | Array | Security | None |
Implementation | Internal | Sets | Lasso 8.5 |
[LDAP->Results] returns the results of the most recent LDAP search as an array containing a series of nested array and pair values. Each element in the top level array is a pair representing an entry found in the search. The first element of the pair is the distinguished name (DN) of the found entry. The second element of the pair is an array of pairs containing the entrys attribute names and values.
<?LassoScript
Var: 'myLDAP' = LDAP;
$myLDAP->(Open: 'ldap.example.com');
$myLDAP->(Authenticate: 'myusername', 'mysecretpassword');
$myLDAP->(Search: 'dc=example,dc=com'; LDAP_Scope_Subtree, '(objectClass=*)');
Var: 'myResult' = $myLDAP->(Results);
$myLDAP->Close;
?>
No Parameters Required.
This tag was added in Lasso 8.5.1. In Lasso 8.5.0 the return value of this tag was returned directly by the [LDAP->Search] tag.
See the Lasso 8 Language Guide for examples of how to use this tag.